/* -------------------------------- Arctic Core ------------------------------
 * Arctic Core - the open source AUTOSAR platform http://arccore.com
 *
 * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
 *
 * This source code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by the
 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 * -------------------------------- Arctic Core ------------------------------*/

#ifndef ASSERT_H_
#define ASSERT_H_

#include <stdio.h>

#if defined(NDEBUG)
#define assert(_x)
#else
#define assert(_x)  if (!(_x)) { \
/*	                  printf("%s %s %s\n",#_x,__FILE__,__LINE__); */ \
	                  abort(); \
                     }
#endif

#endif /* ASSERT_H_ */
